From 9fea9fb410db5920a6c075510db5d5c6e3729022 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 31 May 2006 07:23:54 +0100 Subject: [PATCH] [ACM] Add a hypervisor call macro to the linux kernel; it completes the alignment of the ACM call interface with the other Xen hypervisor call interfaces. This macro is used to call from the a guest kernel directly into the ACM hypervisor module. Signed-off by: Reiner Sailer Signed-off by: Bryan D. Payne --- .../include/asm-i386/mach-xen/asm/hypercall.h | 7 +++++++ linux-2.6-xen-sparse/include/asm-ia64/hypercall.h | 7 +++++++ .../include/asm-x86_64/mach-xen/asm/hypercall.h | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h index 90a72d3cc0..767d293184 100644 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/hypercall.h @@ -259,6 +259,13 @@ HYPERVISOR_event_channel_op( return rc; } +static inline int +HYPERVISOR_acm_op( + int cmd, void *arg) +{ + return _hypercall2(int, acm_op, cmd, arg); +} + static inline int HYPERVISOR_xen_version( int cmd, void *arg) diff --git a/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h b/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h index c2b779bfea..938d0aa99c 100644 --- a/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h +++ b/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h @@ -246,6 +246,13 @@ HYPERVISOR_event_channel_op( return rc; } +static inline int +HYPERVISOR_acm_op( + unsigned int cmd, void *arg) +{ + return = _hypercall2(int, acm_op, cmd, arg); +} + static inline int HYPERVISOR_xen_version( int cmd, void *arg) diff --git a/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h b/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h index 8c521fce03..fd45934418 100644 --- a/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h +++ b/linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/hypercall.h @@ -257,6 +257,13 @@ HYPERVISOR_event_channel_op( return rc; } +static inline int +HYPERVISOR_acm_op( + int cmd, void *arg) +{ + return = _hypercall2(int, acm_op, cmd, arg); +} + static inline int HYPERVISOR_xen_version( int cmd, void *arg) -- 2.30.2